package com.jie.eduservice.client;

import com.jie.commonutils.ResultEntity;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 远程调用的熔断机制, 远程调用出错后会使用这些方法
 * @author XieZhiJie
 * @create 2020-10-13 22:48
 */
@Component
public class VodFileDegradeFeignClient implements VodClient {

    @Override
    public ResultEntity removeAliVideo(String id) {
        return ResultEntity.error().message("删除视频出错了!");
    }

    @Override
    public ResultEntity deleteBatch(List<String> videoIdList) {
        return ResultEntity.error().message("删除多个视频出错了!");
    }
}
